package com.yc.cinema.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 影院售票-排片表-3
 * </p>
 *
 * @author ly
 * @since 2022-11-04
 */
@TableName("sp_plan")
public class SpPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号: 自增列
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 播放时间: 开始播放的时间
     */
    private LocalDateTime playTime;

    /**
     * 电影id: 关联 sp_movie.id
     */
    private Integer mid;

    /**
     * 影厅id: 关联 sp_hall.id
     */
    private Integer hid;

    /**
     * 价格
     */
    private Float price;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public LocalDateTime getPlayTime() {
        return playTime;
    }

    public void setPlayTime(LocalDateTime playTime) {
        this.playTime = playTime;
    }

    public Integer getMid() {
        return mid;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    public Integer getHid() {
        return hid;
    }

    public void setHid(Integer hid) {
        this.hid = hid;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "SpPlan{" +
        "id=" + id +
        ", playTime=" + playTime +
        ", mid=" + mid +
        ", hid=" + hid +
        ", price=" + price +
        "}";
    }
}
